
#ifndef KORNERS_GAME_ENGINE_TIMER
#define KORNERS_GAME_ENGINE_TIMER

#include "korners_game_engine_ai.h"

#include <QTime>


class KornersGameEngineTimer : public KornersGameEngineAI
{
    Q_OBJECT
public:
    explicit KornersGameEngineTimer();
    ~KornersGameEngineTimer();

    void makeNextMove( const QPoint& src, const QPoint& dst );
    void stop();
    void timerEvent( QTimerEvent* event );

public slots:
    void startTiming();

signals:
    void timeChanged( QTime ret );

private:
    void startCount();
    void stopCount();
    QTime value();
    bool m_started;
    bool m_stop;
    long m_value;
    QTime m_time;
};

#endif
